package com.fowo.api.model.funds.pay.order;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 请款单 导入导出辅助模型 */
@Getter
@Setter
public class FundsPayOrderExcelPo {

  @Size(max = 50, message = "请款单号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "请款单号")
  private String orderId;

  @Size(max = 50, message = "关联单号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "关联单号")
  private String associatedOrder;

  @Size(max = 50, message = "付款方长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "付款方")
  private String payer;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "状态")
  private String status;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "应付费用类型")
  private String costType;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "应付对象类型")
  private String payerType;

  @Size(max = 50, message = "应付对象名称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "应付对象名称")
  private String payerTypeName;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "结算方式")
  private String settlementType;

  @Size(max = 50, message = "交易方式长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "交易方式")
  private String exchangeType;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "支付方式")
  private String payType;

  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "预计付款日期")
  private java.util.Date predictFkTime;

  @ExcelProperty(value = "付款金额")
  private java.math.BigDecimal paymentAmount;

  @ExcelProperty(value = "已付")
  private java.math.BigDecimal paidAmount;

  @ExcelProperty(value = "未付")
  private java.math.BigDecimal unpaidAmount;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "申请人")
  private String applicantName;

  @ExcelIgnore
  @ExcelProperty(value = "申请人")
  private Long applicant;

  @Size(max = 50, message = "申请备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "申请备注")
  private String applyRemark;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "申请时间")
  private java.util.Date applyTime;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "实际付款日期")
  private java.util.Date paymentDate;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "付款人")
  private String paymentUserName;

  @ExcelIgnore
  @ExcelProperty(value = "付款人")
  private Long paymentUser;

  @Size(max = 50, message = "付款备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "付款备注")
  private String paymentRemark;
}
